/**
 * 这里存放一些全局的固定关键字，而不是配置文件
 */

export const RuntimeEnv = {
    DEV: "development",
    PROD: "production",
    TEST: "test",
    STAGING: "staging",
    QA: "qa"
} as const;

export const CUREENT_ENV = process.env.NODE_ENV;

export const IS_PROD_ENV = CUREENT_ENV === RuntimeEnv.PROD;

export const REQUEST_ID_HEADER = "X-Request-ID";
export const REQUEST_ID_KEY = "reqId";

export const MIMETypes = {
    ALL_IMAGE: "image/*",
    JPEG: "image/jpeg",
    PNG: "image/png",
    JPG: "image/jpg",
    GIF: "image/gif",
    SVG: "image/svg+xml",
    WEBP: "image/webp",
    TIFF: "image/tiff",
    BMP: "image/bmp",
    ICO: "image/x-icon",
    BINARY: "application/octet-stream", // 进制流
    PDF: "application/pdf",
    DOC: "application/msword",
    DOCX: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
    XLS: "application/vnd.ms-excel",
    XLSX: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
    PPT: "application/vnd.ms-powerpoint",
    PPTX: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
    VIDEO: "video/*",
    AUDIO: "audio/*",
    TEXT: "text/*",
    JSON: "application/json",
    XML: "application/xml",
    HTML: "text/html",
    CSS: "text/css",
    JS: "text/javascript",
    SH: "text/x-sh",
    SQL: "text/x-sql",
    YAML: "text/yaml",
    CSV: "text/csv",
    TSV: "text/tab-separated-values",
    TXT: "text/plain",
    ZIP: "application/zip",
    RAR: "application/x-rar-compressed",
    TAR: "application/x-tar",
    GZ: "application/gzip",
    BZ2: "application/x-bzip2",
    "7Z": "application/x-7z-compressed",
    MP3: "audio/mpeg",
    MP4: "video/mp4",
    WEBM: "video/webm",
    OGG: "audio/ogg"
} as const;
